//app.js
App({
  onLaunch: function () {
    var that = this;
    wx.request({
      url: this.globalData.url +'/web/imgUrl',
      success:function(res){
        that.globalData.imgUrl=res.data;
        console.log("图片根地址")
        console.log(res.data)
      }
    })
  },
  globalData: {
    userInfo: null,
    url:"http://127.0.0.1:8080/weixin_shop",
    imgUrl:null
  }
})